<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@page import="java.util.*"%>
<%@page import="dyyx.domain.*"%>
<%@page import="dyyx.*"%>

<%

   String path = request.getParameter("path");
   String idStr = request.getParameter("id");
   int id = CommUtil.getInt(idStr);
   Map map = null;
   if(path!=null){
	   path=path.trim();
   }
   if(id>0){
	   map = LuceneUtil.getById(id);
   }else{
	   if(!path.isEmpty()){
		   map = LuceneUtil.getByPath(path);
	   }
	   
   }
%>

<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title> search result </title>

</head>
id <%=id %> <br>
path <%=path %> <br>

<hr>


<%if(map==null) {%>

doc is null

<%}else{ %>

id <%=map.get("id") %> <br>
score <%=map.get("score") %> <br>
path <%=map.get("path") %> <br>

<hr>

<pre>
<%=map.get("content") %> 
</pre>

<%} %>

</table>




</html>